package project2.resources;

import project2.config.Config;
import project2.util.SoundPlayer;

public class Sounds {
    public static SoundPlayer smallPlaneKilledSoundPlayer;
    public static SoundPlayer bigPlaneKilledSoundPlayer;
    public static SoundPlayer bossPlaneKilledSoundPlayer;

    public static SoundPlayer bossPlaneFlyingSoundPlayer;
    public static SoundPlayer popWeaponSoundPlayer;

    public static SoundPlayer fireBulletSoundPlayer;
    public static SoundPlayer useBombSoundPlayer;

    public static SoundPlayer getDoubleLaserSoundPlayer;
    public static SoundPlayer getBombSoundPlayer;

    public static SoundPlayer gameMusicSoundPlayer;
    public static SoundPlayer gameOverSoundPlayer;

    public static SoundPlayer achievementSoundPlayer;

    static {
        try {
            smallPlaneKilledSoundPlayer = new SoundPlayer(Config.SMALL_PLANE_KILLED_AUDIO);
            bigPlaneKilledSoundPlayer = new SoundPlayer(Config.BIG_PLANE_KILLED_AUDIO);
            bossPlaneKilledSoundPlayer = new SoundPlayer(Config.BOSS_PLANE_KILLED_AUDIO);

            bossPlaneFlyingSoundPlayer = new SoundPlayer(Config.BOSS_PLANE_FLYING_AUDIO);
            popWeaponSoundPlayer = new SoundPlayer(Config.POP_WEAPON_AUDIO);

            fireBulletSoundPlayer = new SoundPlayer(Config.FIRE_BULLET_AUDIO);
            useBombSoundPlayer = new SoundPlayer(Config.USER_BOMB_AUDIO);

            getDoubleLaserSoundPlayer = new SoundPlayer(Config.GET_DOUBLE_LASER_AUDIO);
            getBombSoundPlayer = new SoundPlayer(Config.GET_BOMB_AUDIO);

            gameMusicSoundPlayer = new SoundPlayer(Config.GAME_MUSIC_AUDIO);
            gameOverSoundPlayer = new SoundPlayer(Config.GAME_OVER_AUDIO);

            achievementSoundPlayer = new SoundPlayer(Config.ACHIEVEMENT_AUDIO);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
